package com.suxin.plugin.intergration.application;

import com.suxin.plugin.intergration.PluginListenerContext;
import com.suxin.plugin.intergration.manager.user.PluginUser;
import com.suxin.plugin.operator.PluginOperator;
import org.springframework.context.ApplicationContext;

/**
 * @author Tang
 * @classname PluginApplication
 * @description [ 一个插件应用 ]
 * @date 2022/6/26 18:26
 */
public interface PluginApplication extends PluginListenerContext {

    /**
     * 初始化
     * @param applicationContext applicationContext
     */
    void initialize(ApplicationContext applicationContext);

    /**
     * 获取插件操作者
     * @return getPluginOperator
     */
    PluginOperator getPluginOperator();

    /**
     * 获得插件操作者
     * @return
     */
    PluginUser getPluginUser();

}